{*?template charset=utf-8?*}
{def $alternative_text=$object.data_map.name.content}

{if is_set($image_class)|not() }
	{def $image_class = "original"}
{/if}
{if is_set( $node.data_map.image.content[$image_class].alternative_text )}
	{set $alternative_text=$node.data_map.image.content[$image_class].alternative_text}
{/if}

        

{if $node.data_map.number_twitter.data_int|gt(0)}
<div class="live_banner">
{attribute_view_gui attribute=$node.data_map.image image_class=$image_class}
<div id="twitter_live"></div>
<script type="text/javascript">
{literal}
$(document).ready(function() {
	$("#twitter_live").getTwitter({
		{/literal}
		userName: "nxtri",
		numTweets: {$node.data_map.number_twitter.data_int},
		loaderText: "Loading tweets...",
		slideIn: true,
		showHeading: true,
		headingText: "Latest Tweets",
		showProfileLink: true
		{literal}
	});
});
	{/literal}
</script>
</div>
{else}
<div class="banner_holder">
{attribute_view_gui attribute=$node.data_map.image image_class=$image_class}
{if $node.data_map.next_competition.has_content}
<div class="next_date">
	<strong>Next competition</strong>
	<span>{attribute_view_gui attribute=$node.data_map.next_competition}</span>
</div>
{/if}
</div>
{/if}
